package cn.quevo.ucenter.core.enums;

import cn.quevo.core.enums.EnumsInterface;
/**
 * Oauth认证失败枚举
 * 
 * @author July july_sky@foxmail.com
 * @date 2018年3月23日 下午1:59:37
 * @Copyright ©2015-2035 湘豫(北京)科技有限公司. All Rights Reserved.
 * @version 1.0
 */
public enum OauthResultStatusEnum implements EnumsInterface {
    INVALID_CLIENT(5110,"CLIENT认证失败"),
    UNAUTHORIZED_CLIENT(5111,"CLIENT秘钥错误"),
    UNAUTHORIZED_CODE(5112,"授权码无效"),
    INVALID_GRANT(5123,"授权类型错误"),
    INVALID_REFRESH_TOKEN(5124,"刷新Token失效"),
    INVALIDRENEW_TOKEN(5125,"Token创建失败"),
    CONTENT_TYPE_INVALID(5126,"请求类型错误"),
    INVALID_TOKEN(5127,"无效TOKEN");

    private Integer code;
    private String value;
    private OauthResultStatusEnum(Integer code,String value) {
        this.code = code;
        this.value = value;
    }
    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.value;
    }
}
